var e = require;
var t = module;
var o = exports;
var n = o;
Object.defineProperty(n, "__esModule", {value: !0});
var i = (function () {
    function e(e) {
        (this.list = []), (this.pool = e);
    }
    return (
        (e.prototype.get = function () {
            var e = this.list.length > 0 ? this.list.shift() : this.pool.get();
            return (e.opacity = 255), e;
        }),
        (e.prototype.getPool = function () {
            return this.pool;
        }),
        (e.prototype.size = function () {
            return this.pool.size() + this.list.length;
        }),
        (e.prototype.put = function (e, t) {
            void 0 === t && (t = !1), t ? this.pool.put(e) : (this.list.push(e), e.stopAllActions(), (e.opacity = 0));
        }),
        (e.prototype.clear = function () {
            this.pool.clear(), (this.list.length = 0);
        }),
        e
    );
})();
n.default = i;
